<?php
	include "config/koneksi.php";
	include "config/library.php";
	include "config/fungsi_indotgl.php";
	include "config/class_paging.php";

	// Bagian Home
	if ($_GET[module]=='home'){
	  echo "<h2>Selamat Datang, $_SESSION[namalengkap]..</h2> <p>&nbsp;</p>";
			  include "front.php";
			  echo "<p>&nbsp;</p>
			  <p align=right>Login : $hari_ini, ";
			  
	  echo tgl_indo(date("Y m d")); 
	  echo " | "; 
	  echo date("H:i:s");
	  echo " WIB</p>";
	}
	
	// Bagian Member
	elseif ($_GET[module]=='member'){
	  if ($_SESSION[leveluser]=='admin'){
		include "modul/mod_member/member.php";
	  }
	}

	// Bagian Konsultasi
	elseif ($_GET[module]=='konsultasi'){
	  if ($_SESSION[leveluser]=='admin'){
		include "modul/mod_konsultasi/konsultasi.php";
	  }
	}
	
	// Bagian Laporan
	elseif ($_GET[module]=='laporan'){
	  if ($_SESSION[leveluser]=='admin'){
		include "modul/mod_laporan/laporan.php";
  }
}

	// Bagian Kategori
	elseif ($_GET[module]=='kategori'){
	  if ($_SESSION[leveluser]=='admin'){
		include "modul/mod_kategori/kategori.php";
	  }
	}

	// Bagian Berita
	elseif ($_GET[module]=='berita'){
	  if ($_SESSION[leveluser]=='admin'){
		include "modul/mod_berita/berita.php";                            
	  }
	}

	// Apabila modul tidak ditemukan
	else{
	  echo "<p><b>MODUL BELUM ADA ATAU BELUM LENGKAP</b></p>";
	}
?>
